package cate.common.table.activity.moonfight.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.moonfight.row.MoonTaskRow;

import java.util.List;
import java.util.stream.Collectors;

public class MoonTaskSheet extends ESheet<MoonTaskRow> {
    @Override
    public String getSheetName() {
        return "月下比武任务";
    }

    public List<Integer> getTaskIds() {
        return getList().stream().map(row -> row.taskId).collect(Collectors.toList());
    }

    public List<Integer> getTaskIds(byte type) {
        return getList().stream().filter(row ->  row.type == type).map(row -> row.taskId).collect(Collectors.toList());
    }
}
